package com.platform.car.service.impl;

import com.platform.car.dao.ParkingZoneDao;
import com.platform.common.base.impl.BaseServiceImpl;
import com.platform.car.model.ParkingZone;
import com.platform.car.service.ParkingZoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PakingZoneServiceImpl extends BaseServiceImpl<ParkingZone> implements ParkingZoneService {

    @Autowired
    private ParkingZoneDao parkingZoneDao;

    @Override
    public List<ParkingZone> selectByParkingId(Integer parkingId) {
        List<ParkingZone> parkingZoneList = parkingZoneDao.selectByParkingId(parkingId);
        return parkingZoneList;
    }

    @Override
    public ParkingZone selectZoneImg(Integer id) {
        return parkingZoneDao.selectZoneImg(id);
    }
}
